package com.schoolgard.base.query;

/**
 * 查询属性
 * <li>功能简述:封装查询方式、查询条件、属性名等QBC查询方式必须的查询信息,为SearchModel服务
 * <li>详细描述:使用时以List<SearchAttribute>方式构造成SearchModel的子属性查询信息
 * @author  luoyg
 * @version  [8.0 2010-8-24]
 * @see  [相关类/方法]
 * @since  8.0
 */
public class SearchAttribute {
    private String propertyName;
    private Object value;
    private ConstraintEnum constraint;
    /** 属性名称*/
    public String getPropertyName() {
        return propertyName;
    }
    /** 属性名称*/
    public void setPropertyName(String propertyName) {
        this.propertyName = propertyName;
    }
    /** 属性值*/
    public Object getValue() {
        return value;
    }
    /** 属性值*/
    public void setValue(Object value) {
        this.value = value;
    }
    /**查询方式*/
    public ConstraintEnum getConstraint() {
        return constraint;
    }
    /**查询方式*/
    public void setConstraint(ConstraintEnum constraint) {
        this.constraint = constraint;
    }

    public SearchAttribute(String propertyName,Object value,ConstraintEnum constraint){
        this.constraint=constraint;
        this.propertyName=propertyName;
        this.value=value;
    }
}
